package com.like.fragment;


import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.like.hospitalworld.R;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.fragment_guide)
public class GuideFragment extends BaseFragment {

    private int mResourceId;

    @ViewInject(R.id.img)
    private ImageView mImg;

    public void setImg(int resourceId) {
        this.mResourceId = resourceId;
        if (mImg != null)
            Glide.with(m.mContext.getApplicationContext()).load(mResourceId).asBitmap().into(mImg);
    }

    @Override
    protected void onCreateView() {
        super.onCreateView();
        Glide.with(m.mContext.getApplicationContext()).load(mResourceId).asBitmap().into(mImg);
    }
}
